
#include "main.h"



int main()
{	
	RunMenu();
	return 0;
}

void RunMenu()
{
	int Choice=0;
	vector<Test*> tests;
	while (true)
	{
		cout<< "===menu==="<<endl;
		cout<< "1.Create test"<<endl;
		cout<< "2.Take the test"<<endl;
		cout<< "3.Exit"<<endl;
		cin>>Choice;
		switch (Choice)
		{ 
		case Create:
			tests.push_back(Test::Create());

			break;
		case Take:
			break;
		case Exit:
			ReleaseTests(tests);
			return;
			break;
		default:
			break;
		}
	}
}

void ReleaseTests(vector<Test*> tests)
{
	for(int i=0;i<tests.size();i++)
		delete tests.at(i);
}